package com.bishe.cyh.excep;

import lombok.Data;

/**
 * @Author: Poppin
 * @Date: 2022/3/3 19:20
 * @Version: 1.0
 */

@Data
public class BusinessException extends RuntimeException{

    private ErrorCode errorCode;
    private String msg;
    private String msgCN;

    public BusinessException(ErrorCode errorCode, String msg) {
        super(errorCode.getDesc());
        this.errorCode = errorCode;
        this.msg = msg;
        this.msgCN=msg;
    }
}
